<?php $this->load->view('admin/head.php'); ?>
<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="<?php echo site_url()?>/admin/index/index">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">客户管理</span></div>
    </div>
    <div class="search-wrap">
        <div class="search-content">

        </div>
    </div>
    <div class="result-wrap">
        <form name="myform" id="myform" method="post">
            <div class="result-title">
                <div class="result-list">
                    <a href="<?php echo site_url('admin/client/add/')?>"><i class="icon-font"></i>新增</a>
                    <!--<a id="batchDel" href="javascript:checkDel();"><i class="icon-font"></i>批量删除</a>-->
                    <!--<a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>-->
                </div>
            </div>
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <tr>
                        <th>ID</th>
                        <th>公司名称</th>
                        <th>图片</th>
                        <th>说明</th>
                        <th>编辑</th>
                    </tr>
                    <?php foreach ($list as $key=>$val){?>
                        <tr>
                            <td><?php echo $val['id']?></td>
                            <td><?php echo $val['title']?></td>
                            <td><img width='100px' src="<?php echo base_url().$val['logo_picture']?>" /></td>
                            <td><?php echo $val['explain']?></td>
                            <td>
                                <a class="link-update" href="<?php echo site_url('admin/client/update/'.$val['id'])?>" class="btn btn-warning">查看</a>
                                <?php if($val['id'] != 1){ ?><a class="link-del" href="javascript:if(confirm('确实要删除该内容吗'))location='<?php echo site_url('admin/client/delete/'.$val['id'])?>'" class="btn btn-danger col-xs-offset-1">删除</a><?php } ?>
                            </td>
                        </tr>
                    <?php } ?>
                </table>
            </div>
        </form>
    </div>
</div>
<!--/main-->
</div>
</body>
</html>